<!--

    DEFAULT LAYOUT

-->
<!DOCTYPE html>
<html lang="{{lang}}" xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>{{title}}{% if process.env.NODE_ENV === 'development' %} [development] {{text}}{% endif %}</title>

    <!-- General META -->
    <meta charset="utf-8">
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="keywords" content="{{keywords}}">
    <meta name="description" content="{{description}}">
    <link href="favicon.ico" rel="shortcut icon" type="image/x-icon">

    {% for css in assets.css %}
        <link rel="stylesheet" type="text/css" href="{{css}}">
    {% endfor %}

    <!-- HTML5 Shim -->
    <!--[if lt IE 9]>
        <script src="lib/dist/js/amazeui.ie8polyfill.min.js"></script>
    <![endif]-->
</head>

<body class="ng-cloak">

    <!--[if lt IE 9]>
    <section class="browsehappy jumbotron hide">
        <h1>Hello there!</h1>
        <p>You are using an old browser which we unfortunately do not support.</p>
        <p>Please <a href="http://browsehappy.com/">click here</a> to update your browser before using the website.</p>
        <p><a href="http://browsehappy.com" class="btn btn-primary btn-lg" role="button">Yes, upgrade my browser!</a></p>
    </section>
    <![endif]-->
    <header class="am-topbar am-topbar-inverse">
        <h1 class="am-topbar-brand">
            <a href="#"><i class="am-icon-info-circle"></i> PANES.JS DEMO</a>
        </h1>

        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}">
            <span class="am-sr-only">MENU</span>
            <span class="am-icon-bars"></span>
        </button>

        <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
            <ul class="am-nav am-nav-pills am-topbar-nav">
                <li class="am-active"><a href="#">HOME</a></li>
                <li><a href="http://panesjs.com">API DOC</a></li>
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                        DROP <span class="am-icon-caret-down"></span>
                    </a>
                    <ul class="am-dropdown-content">
                        <li class="am-dropdown-header">Yo Tools</li>
                        <li class="am-active"><a href="#">generator-panes</a></li>
                        <li><a href="#">generator-ng-panes</a></li>
                        <li><a href="#">generator-amaze</a></li>
                        <li class="am-disabled"><a href="#">generator-ng-riot</a></li>
                        <li class="am-divider"></li>
                        <li><a href="http://joelchu.com">Joel Chu</a></li>
                    </ul>
                </li>
            </ul>
            <form class="am-topbar-form am-topbar-left am-form-inline" role="search">
                <div class="am-form-group">
                    <input type="text" class="am-form-field am-input-sm" placeholder="SEARCH">
                </div>
            </form>

            <div class="am-topbar-right">
                <div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
                    <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm am-dropdown-toggle" data-am-dropdown-toggle>
                        OTHERS <span class="am-icon-caret-down"></span>
                    </button>
                    <ul class="am-dropdown-content">
                        <li><a href="/login/facebook"><i class="am-icon-facebook"></i> Facebook</a></li>
                        <li><a href="/login/twitter"><i class="am-icon-twitter"></i> Twitter</a></li>
                    </ul>
                </div>
            </div>

            <div class="am-topbar-right">
                <button class="am-btn am-btn-primary am-topbar-btn am-btn-sm" data-am-modal="{target: '#doc-modal-1', closeViaDimmer: 0, width: 400, height: 225}">
                    LOGIN
                </button>
            </div>
        </div>
    </header>
    <div class="am-container">
    {% block content %}{% endblock %}
    </div>
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="doc-modal-1">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">Hey you!
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                Just show you a modal :)
            </div>
        </div>
    </div>

    {% for js in assets.js %}
        <script type="text/javascript" src="{{js}}"></script>
    {% endfor %}

    {% if process.env.NODE_ENV === 'development' %}
    <!--Livereload script rendered -->
    <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
    {% endif %}

    {% if process.env.NODE_ENV === 'production' %}
    <!--
        @TODO  allow inject a user defined bottom script
    -->
    {% endif %}

</body>
</html>
